BenSelect Documentation
Case - Coverage in pending if EE-initiated Life Event
Send Feedback
JScript Examples > JScript for Plans > Case - Coverage in pending if EE-initiated Life Event

Glossary Item Box

The following script, placed in an OnSave event, will put that coverage into Agent Follow-up/pending status if changed by an employee outside of their eligibility grace period and outside of open enrollment (i.e., as the result of a life event).  This script was used to force an HR department to confirm all employee-initiated life events.
 

// script to put change events initiated by employee into Agent Follow-up status

var eligDateGrace = new Date(Event.Employee.EligibilityDate);

eligDateGrace.setDate(eligDateGrace.getDate()+ Event.Config.GracePeriod );

var startOE = Event.Case.StartEnrollment;

var endOE = Event.Case.EndOpenEnrollment;

var inOE = false;

if (DateTime.Now >= Event.Case.StartEnrollment && DateTime.Now <= Event.Case.EndOpenEnrollment)

inOE = true;

if ( !Event.Engine.IsEnroller && DateTime.Now > eligDateGrace && !inOE )

Event.Application.AgentPending = true;


 

©2024. All Rights Reserved.